package com.creali.web.services;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.creali.web.dao.UserDAO;
import com.creali.web.domain.User;


@Component
@Transactional
public class UserServices {
	@Autowired
	private UserDAO userDAO;

	public void setUserDAO(UserDAO userDAO) {
		this.userDAO = userDAO;
	}
	
	public void saveUser(User user){
		this.userDAO.saveUser(user);
	}
	
	
	public List<User> listUser(){
		return this.userDAO.listUser();
	}
	
	
}
